<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>計算器</title>
    <link rel="stylesheet" href="css.css">
</head>

<body>
    <div class="bg">
        <div class="main">

            <form action="" name="form">
                <input type="textview" class="textview" name="textview">
            </form>

            <table>
                <tr>
                    <td><input type="button" class="button" value="C" onclick="clean()"></td>
                    <td><input type="button" class="button" value="<" onclick="back()"></td>
                    <td><input type="button" class="button" value="/" onclick="insert('/')"></td>
                    <td><input type="button" class="button" value="*" onclick="insert('*')"></td>
                </tr>
                <tr>
                    <td><input type="button" class="button" value="7" onclick="insert('7')"></td>
                    <td><input type="button" class="button" value="8" onclick="insert('8')"></td>
                    <td><input type="button" class="button" value="9" onclick="insert('9')"></td>
                    <td><input type="button" class="button" value="-" onclick="insert('-')"></td>
                </tr>
                <tr>
                    <td><input type="button" class="button" value="4" onclick="insert('4')"></td>
                    <td><input type="button" class="button" value="5" onclick="insert('5')"></td>
                    <td><input type="button" class="button" value="6" onclick="insert('6')"></td>
                    <td><input type="button" class="button" value="+" onclick="insert('+')"></td>
                </tr>
                <tr>
                    <td><input type="button" class="button" value="1" onclick="insert('1')"></td>
                    <td><input type="button" class="button" value="2" onclick="insert('2')"></td>
                    <td><input type="button" class="button" value="3" onclick="insert('3')"></td>
                    <!-- equal 的意思是对比 -->
                    <td rowspan="2"><input style="height: 106px;" type="button" class="button" value="="
                            onclick="equal('=')">
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><input style="width: 106px;" type="button" class="button" value="0"
                            onclick="insert('0')">
                    </td>
                    <td><input type="button" class="button" value="." onclick="insert('.')"></td>
                </tr>
            </table>
        </div>
    </div>
    <script src="./script.js"></script>
</body>

</html>